package com.fr.staticTest;
/**
 * test static
 * myclass static
 * person static
 * person Test
 * test constructor
 * person MyClass
 * myclass constructor
 * 
 * */
public class Test1 {
    Person person = new Person("Test");
    static{
        System.out.println("test static");
    }
     
    public Test1() {
        System.out.println("test constructor");
    }
     
    public static void main(String[] args) {
        new MyClass();
    }
}
 
class Person{
    static{
        System.out.println("person static");
    }
    public Person(String str) {
        System.out.println("person "+str);
    }
}
 
 
class MyClass extends Test1 {
    Person person = new Person("MyClass");
    static{
        System.out.println("myclass static");
    }
     
    public MyClass() {
//省略    	super();
        System.out.println("myclass constructor");
    }
}